<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // jsonp是一种解决跨域问题的方法 依靠src属性不存在跨域的特性 通常情况下会采用动态添加script标签的方式
        // 为了能够动态配置src属性的值
        /*
            var script = document.createElement('script')
            script.setAttribute('src', 'url')
            document.body.appendChild(script)
        */ 
        function jsonpSpecialOffer(num) {
            console.log(num)
        }
    </script>
    <!-- <script src="./json.js"></script> -->
    <!-- <script>
        fn(123)
    </script> -->
    <!-- <script src="http://127.0.0.1:3000/"></script> -->
    <script src="https://floor.jd.com/recommend-v20/daily_speci_tab/get?source=pc-home&callback=jsonpSpecialOffer&_=1611196495471"></script>
</body>
</html>